package com.stadium;


import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.EnableAutoConfiguration;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.builder.SpringApplicationBuilder;
import org.springframework.boot.web.servlet.support.SpringBootServletInitializer;
import org.springframework.cache.annotation.EnableCaching;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.EnableAspectJAutoProxy;
import org.springframework.data.jpa.repository.config.EnableJpaAuditing;

/**
 * 
 * @author King.S
 *
 */
@EnableJpaAuditing // 使用jpa自动赋值
@EnableAutoConfiguration
@SpringBootApplication(scanBasePackages={"com.stadium","com.fastsite"})
@EnableAspectJAutoProxy(proxyTargetClass=true)
@EnableCaching
@ComponentScan(basePackages={"com.stadium","com.fastsite"})
public class ApplicationWeb extends SpringBootServletInitializer {
	@Override
	protected SpringApplicationBuilder configure(SpringApplicationBuilder application) {
		return application.sources(ApplicationWeb.class);
	}

	public static void main(String[] args) {
		SpringApplication.run(ApplicationWeb.class, args);
	}

}